package cn.zysuyuan.item.service;

import cn.zysuyuan.common.entity.PageResult;
import cn.zysuyuan.item.entity.DeviceData;
import cn.zysuyuan.item.mapper.DeviceDataMapper;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author flypig
 * @version 1.0
 * @date 2019/10/28 13:24
 */


public interface DeviceDataService {
    public PageResult<DeviceData> selectDeviceDataByPage(Map<String,Object> map);

    int  saveInfo(DeviceData sensorDevices);

    List<DeviceData> selectNewOne();

    Map<String, Object> selectEachDeviceData(String name);

    Map<String,Object> getEchartsData(String name);

    int deleteById(String id);
}
